<%@ page language="java" contentType="text/html;charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="${ctx }/css/b.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
.box{
	width:390px;
	height:320px;
	border:solid 1px #ddd;
	background:#FFF;
	position:absolute;
	left:50%;
	top:50%;
	margin-left:-195px;
	margin-top:-160px;
}
.box h2{
	font-weight:normal;
	color:#666;
	font-size:16px;
	line-height:46px;
	height:46px;
	overflow:hidden;
	text-align:center;
	border-bottom:solid 1px #ddd;
	background:#f7f7f7;
}
.input_box{
	width:350px;
	padding-bottom:15px;
	margin:0 auto;
	overflow:hidden;
}
.input_box input{
	float:left;
	width:348px;
	height:40px;
	font-size:14px;
	border:solid 1px #ddd;
	text-indent:10px;
	outline:none;
	line-height:40px;
}
.input_box button{
	width:350px;
	height:48px;
	background:#3f89ec;
	border:none;
	border-radius:2px;
	outline:none;
	cursor:pointer;
	font-size:16px;
	color:#FFF;
}
#error_box{
	height:40px;
	width:350px;
	margin:0 auto;
	line-height:40px;
	color:#fc4343;
}

.register{
float: right;
    margin: 5px;
    color: #039;
    font-size: 12px;
   }
</style>
<title>长江师范学院失物招领中心,登录</title>
</head>
<body style="background: white none repeat scroll 0% 0%; text-align: center;">
<!--导航菜单-->
	<div class="MainMenu" style="margin-bottom: 8px;">
		<div class="MenuList" style="min-width: 500px; background: transparent none repeat scroll 0% 0%;">
			<dl>
				<dt>
					<a href="${ctx }/swzl/index"><div>首页</div></a>
				</dt>
			</dl>
			<dl class="ch">
				<dt>
					<c:if test="${not empty swzlUser}">
						<a href="${ctx }/swzl/userInfo?type=myInfo"><div>${swzlUser.name }</div></a>
					</c:if>
					<c:if test="${empty swzlUser}">
						<a href="${ctx }/swzl/userInfo?type=goLogin"><div>登录/注册</div></a>
					</c:if>
				</dt>
			</dl>
			<dl>
				<dt>
					<a href="${ctx }/swzl/index?typeParentId=1"><div>失物招领</div></a>
				</dt>
			</dl>
			<dl>
				<dt>
					<a href="${ctx }/swzl/index?typeParentId=2"><div>寻物启事</div></a>
				</dt>
			</dl>
			<dl>
				<dt>
					<a href="${ctx }/swzl/index?typeParentId=3"><div>我发布的</div></a>
				</dt>
			</dl>
			<c:if test="${not empty swzlUser}">
				<dl>
					<dt>
						<a href="${ctx }/swzl/userInfo?type=loginOut"><div>退出</div></a>
					</dt>
				</dl>
			</c:if>						
		</div>
	</div>
<!-- 导航菜单 -->


 



<link rel="stylesheet" type="text/css" href="${ctx }/css/common.css">
<link rel="stylesheet" type="text/css" href="${ctx }/css/mybutton.css">
<link rel="stylesheet" type="text/css" href="${ctx }/css/main.css">
<style type="text/css">
/* Code tidied up by ScrapBook */
body { font-family: "Roboto-Regular","微软雅黑","宋体",Arial,sans-serif; font-size: 14px; line-height: 20px; color: rgb(102, 102, 102); text-align: center; }
a { color: rgb(102, 102, 102); text-decoration: none; }
a:hover, a:focus { color: rgb(0, 85, 128); text-decoration: underline; }
</style> 

<script type="text/javascript">
if (window != top) {
	top.location.href = location.href;
}
</script>

               
<div class="box">
<form action="${ctx }/swzl/userInfo?type=login" method="post" id="sumform">
	<h2 style="margin: 0px;">登录</h2>
    <div id="error_box">${loginMsg }</div>
    <div class="input_box">
    	<input type="text" placeholder="请输入账户名" id="userName" name="userName" style="width: 95%"/>
    </div>
    <div class="input_box">
    	<input type="password" placeholder="请输入密码" id="passWord" name="passWord" style="width: 95%"/>
    </div>
    <div class="input_box">
    	
    	<button onclick="fnLogin()">登录</button>
    	<a href="${ctx }//swzl/userInfo?type=goRegister" class="register">新用户注册</a>
    </div>
    </form>
</div>

<script type="text/javascript">

	function fnLogin(){
		document.getElementById("sumform").submit;
	}

</script>











<div style="width: 100%; background: rgb(239, 239, 239) none repeat scroll 0% 0%; padding: 0px; height: 85px; display: block; font-size: 11px; line-height: 15px; margin: 0px; position: fixed; bottom: 0px; left: 0px; font-family: Roboto-Regular,微软雅黑,宋体,Arial,sans-serif;"> 
      <div style="vertical-align: middle; background: transparent none repeat scroll 0% 0%; padding-top: 8px; color: rgb(102, 102, 102);">
        ©Copyright2016 <a href="#" target="_blank" style="color: rgb(102, 102, 102);">长江师范失物招领</a> All Rights Reserved
	  </div>
       
      <div style="vertical-align: middle; background: transparent none repeat scroll 0% 0%; margin: 10px auto;">
                 邮箱：<a href="mailto:contact@swzl.com">895243872@qq.com</a>
	  </div>
	   <div style="width: 300px; margin: 0px auto; padding: 0px; text-align: center;">
	 		<a target="_blank" href="#" style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;">
		 		<img src="${ctx }/images/gongAnBeiAnLogo.png" style="float: left;">
		 		<p style="float: left; height: 20px; line-height: 20px; margin: 0px 0px 0px 5px; color: rgb(147, 147, 147);">
		 		渝公网安备 000000000000000号
		 		</p>
	 		</a>
	 	</div>
</div>


</body>
</html>

